
%include "head.include"

your_if:
    mov eax, [a1]
    cmp eax, 12
    jl A
    cmp eax, 24
    jl B
    shl eax, 4
    jmp C
A:
    shr eax, 1
    inc eax
    jmp C

B:
    mov ebx, 24
    sub ebx, eax
    imul eax, ebx
C:
    mov [if_flag], eax



your_while:
    mov ebx, [a2]
    cmp ebx, 12
    jl D
    call my_random
    mov ecx, [while_flag]
    mov [ecx+ebx-12], al
    dec dword[a2]
    jmp your_while
D:

%include "end.include"



your_function:
    mov eax, [your_string]
E:
    mov bl, [eax]
    cmp bl, 0
    je F
    pushad
    push ebx
    call print_a_char
    pop ebx
    popad
    inc eax
    jmp E
F:
    ret